Repository navigation
Conversation
Navy glass over the sidebar material, the app's mark and name at the top, the navigator tabs in one capsule with the shown tab named, a neutral selection in Files, and a foot that names the window's folder and where it is, in place of where kernels run and how many. Closes #873 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GitYQ81eTgiFcU6wyKWjFb
…873) A focused Mac sidebar list draws its selection in the accent whatever tint it carries, so the unused SidebarSelection colorset goes. The light tint was invisible at 8% (now 14%), and the foot's second line measured 3.6:1 in `.secondary`, so it uses the label color at 72%. Removes the PR screenshots. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GitYQ81eTgiFcU6wyKWjFb
tlockney
left a comment
There was a problem hiding this comment.
Round 1. I checked the diff against main (79a9c36), #873's five points and its acceptance criteria, the tests, docs/apps.md, the dev log, and git diff --stat --summary. The diff holds no stray files: the screenshots were added in 213ae5e and removed in 95b0bfd. CI is green.
Lenses applied:
- Entry points and consumers: the removed
OpenTerminals.summaryhas no remaining callers.ProjectLineTextis listed in both test targets. The machine window getshome: niland no Show in Finder. Recents uses the sharedabbreviate. - Input edges:
abbreviateandlineshandle a lookalike home prefix, a home with a trailing slash, a home at "/", a root, a machine's root and the home folder itself, and each case has a test. - Platform: the iOS build passes in CI. A focused selection's accent is unchanged, so Gap 93 doesn't apply.
- Docs: each changed section of
apps.mdhas an Unreleased note, and the dev-log entry exists.
The new tests (ProjectLineTests, NavigatorTabTests help and running value) would fail without the change. The layout points (capsule, badge overlay, mark, tint) can only be shown in screenshots.
Findings
Medium
- The screenshots aren't of the shipped head. #873 asks for the five points "on the Mac, in dark and light, for a window on this Mac and a machine's window", with before/after screenshots. The after shots are of 213ae5e plus a local experiment. That build's light tint is 8%, and the head's is 14%. The head also changed the foot's second line from
.secondaryto 72% primary. No shot shows a machine's window, and the PR says 95b0bfd wasn't rebuilt on the Mac. To meet the item, retake dark and light shots of a build of the head, for this Mac's window and a machine's. Use the repo's screenshot hosting: commit under.github/pr-screenshots/876/, link the raw URLs, and remove them in the next commit. Inline onSidebarTint.colorset. - The 4.5:1 text requirement is unmet and unmeasured. #873 item 1 says "Text keeps 4.5:1 (secondary labels included)". By the dev log's own figure, the lists' secondary captions read about 3.6:1 in light. The foot's 72% line is "about 4.7:1 by the same arithmetic", but that was measured at the 8% tint, not the 14% the head ships. The code comment says "keeps it past 4.5:1" without a measurement behind it. Fix the captions, or defer them to a named issue (or ask Thomas). Then re-measure on a build of the head. Inline on
NativeChrome.swift:573.
Low
3. The dev log contradicts itself. docs/notes/2026-11-26-mac-sidebar.md:56 still says the foot's second line is .caption secondary. Line 73 gives 721 tests, while the PR body says 724.
#873 acceptance items
- Five points on the Mac, dark/light, this Mac and a machine's window: missing. The shown build isn't the head, and there is no machine window (finding 1).
- Text keeps 4.5:1, secondary labels included: missing (finding 2).
- No control moves when the Running count or kernel state changes: met. The badge is an overlay, and the foot no longer shows kernel state.
- Unit tests for the foot's text and the capsule's labels and help: met.
docs/apps.mdwith an Unreleased note, and a dev-log entry: met, apart from finding 3.- Before/after screenshots, dark and light: partly met (finding 1).
- Quiet selection: met for the open notebook's row. The author has put the focused-selection accent to Thomas in the thread, which is fine.
Reviewed commit 95b0bfd
Review: changes needed
Generated by Claude Code
| "color": { | ||
| "color-space": "srgb", | ||
| "components": { | ||
| "alpha": "0.140", |
There was a problem hiding this comment.
Medium. This alpha went from 0.080 to 0.140 in 95b0bfd, after the screenshots (213ae5e, whose colorset is still 0.080) and after the contrast numbers were measured from them. The PR says 95b0bfd wasn't rebuilt on the Mac. So the "after" shots don't show the light tint this PR ships, and the 11.0:1 / 3.6:1 / "about 4.7:1" figures were taken against a lighter background than the head draws. Fix: rebuild the head, retake dark and light shots (this Mac's window and a machine's, per #873), and re-measure the foot's second line and the lists' secondary captions on them.
Generated by Claude Code
| Text(lines.detail) | ||
| .font(.caption) | ||
| // Not `.secondary`, which measured 3.6:1 on the | ||
| // light tint (#873): this keeps it past 4.5:1. |
There was a problem hiding this comment.
Medium (with the colorset comment). "keeps it past 4.5:1" isn't measured: the dev log gives "about 4.7:1 by the same arithmetic", worked from screenshots at the 8% light tint, and the head's tint is 14%. 4.7 leaves little margin, so it needs a measurement from a build of this commit. Separately, #873 item 1 says "Text keeps 4.5:1 (secondary labels included)", and the dev log says the lists' .secondary captions (Recents' folders) land at about 3.6:1 in light. That item is neither met nor deferred to a named issue. Either raise those captions the same way as this line, or file a follow-up (or put it to Thomas, as with the focused selection) and name it in the PR.
Generated by Claude Code
| 18%, so it doesn't read as a second selection. | ||
| - The foot is the project: `ProjectLine` replaces `ServerLine`, with the | ||
| folder symbol, the folder's name in `.callout` and, in `.caption` | ||
| secondary, the folder it is in and the place: "~/notes · This Mac". |
There was a problem hiding this comment.
Low. This says the second line is "in .caption secondary". After 95b0bfd it is Color.primary.opacity(0.72), which line 18 of this same note says. Line 73's "721 tests" also differs from the PR body's 724/724. Fix: drop "secondary" here, and make the test count match the run you report.
Generated by Claude Code
Closes #873
Step 4a of #844. The Find tab (Search and Outline in one) is a separate change.
What changes
SidebarTintcolorset (#2B3A67 at 14% light, 55% dark) behind the whole sidebar column, over the system material. The lists hide their scroll background so the tint shows behind rows.ViewThatFits). The capsule has the tab bar trait. The Running badge is an overlay, so no width changes when it appears; VoiceOver hears "2 running" as the tab's value. Shortcuts are unchanged.Color.primary8% in place of the accent at 18%. The focused selection keeps the system's accent: on macOS 26 a focused sidebarListignores.tintand.accentColor, on the list and on its rows, as tried in the running app. Without focus it is grey already. This needs Thomas's call (asked in the thread). Drawing our own would mean hiding the system's highlight.ProjectLinereplacesServerLine. It shows the folder's name over "~/notes · This Mac" (a machine's window shows its server's path and the machine's name; a root shows "/" over the place). The help tag has the full path. The menu has Show in Finder (this Mac only), New Terminal On, and Manage or Add Remotes. The kernel and terminal count and "Kernels run on" are gone; the kernel button and the Running tab show them. The text comes fromProjectLineText.lines, which is in both test targets.Screenshots (Mac, m4mini, list focused)
The after shots are of 213ae5e with a local experiment that also set
.accentColoron the list and rows. That experiment turned the file icons grey and did not change the selection. The PR leaves it out, so its icons keep the accent. 95b0bfd also changes the foot's second line from.secondaryto the label color at 72%. No machine window was connected, so there is no shot of one.Contrast, measured from the shots (strongest text pixel against the foot's background): the folder name reads 11.0:1 light and 9.8:1 dark. The second line read 3.6:1 light and 5.1:1 dark in
.secondary, which is why it moved to 72%.Verification
ProjectLineTests(under home, in home, outside home, a lookalike home prefix, the home folder, this Mac's root and a machine's root, a machine's folder,abbreviatewith a trailing-slash home and a root home),NavigatorTabTests(helpfor three tabs,runningValue).OpenTerminals.summaryand its test are removed with the old foot.npm run checkpassed, the full macOS Swift suite passed (724/724), the Debug build succeeded, andbuild-for-testingfor Ganymede-iOS succeeded. Screenshots above. 95b0bfd (tint alpha, the foot color, the colorset removed) was not rebuilt on the Mac; CI builds it.Generated by Claude Code